package com.joolun.script.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;

/**
 * 剧本
 *
 * @author 臣服
 * @date 2022-01-12 10:52:16
 */
@Data
@TableName("script")
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "剧本")
public class Script extends Model<Script> {
    private static final long serialVersionUID=1L;

    /**
     * 
     */
    @TableId(type = IdType.ASSIGN_ID)
    @NotNull(message = "不能为空")
    @ApiModelProperty(value = "")
    private String id;
    /**
     * 封面
     */
    @ApiModelProperty(value = "封面")
    private String cover;
    /**
     * 标题
     */
    @ApiModelProperty(value = "标题")
    private String title;
    /**
     * 题材类型
     */
    @ApiModelProperty(value = "题材类型")
    private String themeType;
    /**
     * 剧本介绍
     */
    @ApiModelProperty(value = "剧本介绍")
    private String remark;
    /**
     * 角色介绍
     */
    @ApiModelProperty(value = "角色介绍")
    private String roles;
    /**
     * 作者寄语
     */
    @ApiModelProperty(value = "作者寄语")
    private String authorNote;
    /**
     * 创建时间
     */
    @NotNull(message = "创建时间不能为空")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;
    /**
     * 推荐：Y是，N否
     */
    @NotNull(message = "推荐：Y是，N否不能为空")
    @ApiModelProperty(value = "推荐：Y是，N否")
    private String recommend;

    /**
     * 创建时间
     */
    @NotNull(message = "创建时间不能为空")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime recommendTime;

    public static class ScriptField {
    
        /**
         * 
         */
        public static String ID = "id";

    
        /**
         * 封面
         */
        public static String COVER = "cover";

    
        /**
         * 标题
         */
        public static String TITLE = "title";

    
        /**
         * 题材类型
         */
        public static String THEME_TYPE = "theme_type";

    
        /**
         * 剧本介绍
         */
        public static String REMARK = "remark";

    
        /**
         * 角色介绍
         */
        public static String ROLES = "roles";

    
        /**
         * 作者寄语
         */
        public static String AUTHOR_NOTE = "author_note";

    
        /**
         * 创建时间
         */
        public static String CREATE_TIME = "create_time";

        /**
         * 推荐时间
         */
        public static String RECOMMEND_TIME = "recommend_time";

    
        /**
         * 推荐：Y是，N否
         */
        public static String RECOMMEND = "recommend";

    
    }

}
